<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2024/6/27
  Time: 13:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改用户信息</title>
</head>
<body>
<h1 align="center">修改用户信息</h1>
<form action="edit" method="post" align="center">
    <table border="1">
        <tr>
            <td>ID:</td>
            <td><input type="text" name="id" value="${user.id}"readonly></td>
        </tr>
        <tr>
            <td>用户编码：</td>
            <td><input type="text" name="userCode" value="${user.userCode}"></td>
        </tr>
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="userName" value="${user.userName}"></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type="text" name="userPassword" value="${user.userPassword}"></td>
        </tr>
<tr>
    <td>性别：</td>
    <td>
        <select name="genter">
            <option value="0" ${user.genter == 0 ? 'selected': ''}>男</option>
            <option value="1" ${user.genter == 1 ? 'selected': ''}>女</option>

        </select>
    </td>
</tr>
<tr>
    <td>生日：</td>
    <td><input type="date" name="birthday" value="<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd" />"></td>
</tr>
        <tr>
            <td>邮箱：</td>
            <td> <input type="email" name="email" value="${user.emil}"></td>
        </tr>
        <tr>
            <td>电话：</td>
            <td> <input type="text" name="phone" value="${user.phone}"></td>
        </tr>
        <tr>
            <td>地址：</td>
            <td> <input type="text" name="address" value="${user.address}"></td>
        </tr>
        <tr>
            <td>用户角色：</td>
            <td> <input type="text" name="userRole" value="${user.userRole}"></td>
        </tr>
<tr>
    <td colspan="2" align="center"><input type="submit" value="更新用户"></td>
</tr>



    </table>

</form>
</body>
</html>
